package hikari.instruments;

import com.gooddies.wiring.annotations.WiringComponent;

/**
 * @author sad
 */
@WiringComponent(singleton = true, lazy = true)
public class PanInstrument extends CameraObserveInstrument {

    private PanInstrument() {
    }

    
    
    @Override
    public void mouseMove(int x, int y, int dx, int dy, int modifier) {
        if (isLeftMouseDown(modifier) && isShiftPressed(modifier)) {
            pan(x, y, dx*10, dy*10);
        } else if (isLeftMouseDown(modifier)) {
            pan(x, y, dx, dy);
        }
    }
}
